import http from "@/utils/request";

// 申请服务工单
export const swoTicketCreate = async (data) => {
	return http.post<any>(`/bpm/app-swo-ticket/create`,data)
}

// 服务工单分页
export const swoTicketPage = async (data:any) => {
	return http.get<any>(`/bpm/app-swo-ticket/page`, data)
}

// 服务工单详情
export const swoTicketDetail = async (data:any) => {
	return http.get<any>(`/bpm/app-swo-ticket/get`, data)
}

//  取消服务工单
export const swoTicketCancel = async (data:any) => {
	return http.get<any>(`/bpm/app-swo-ticket/cancel-swo-ticket`, data)
}

// 服务工单评价
export const swoTicketAppraise = async (data:any) => {
	return http.post<any>(`/bpm/app-swo-ticket/swo-ticket-appraise`, data)
}